package lifecycle;

import org.springframework.beans.factory.DisposableBean;
import org.springframework.beans.factory.InitializingBean;

public class UserServiceImplLifecycle2 implements InitializingBean, DisposableBean {
    public UserServiceImplLifecycle2() {
        System.out.println("构造函数------");
    }

    @Override
    public void destroy() throws Exception {
        System.out.println("disposalbe bean destory+++");
    }

    @Override
    public void afterPropertiesSet() throws Exception {
        System.out.println("after prop set +++");
    }
}
